﻿using System;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;

namespace mozhi.smarterp.Business.Inventories.Repositories
{
    public interface IInventoryRealTimeRepository : IRepository<InventoryRealTime, Guid>
    {
        Task<int> GetCountAsync(Guid? productId , Guid? warehouseId, Guid? locationId , string batchNumber, string serialNumber , DateTime? productionDate , CancellationToken cancellationToken = default(CancellationToken));

        Task<List<InventoryRealTime>> GetListAsync(Guid? productId, Guid? warehouseId, Guid? locationId, string batchNumber, string serialNumber, DateTime? productionDate, CancellationToken cancellationToken = default(CancellationToken));

        Task<InventoryRealTime> GetAsync(Guid? productId, Guid? warehouseId, Guid? locationId, string batchNumber, string serialNumber, DateTime? productionDate, CancellationToken cancellationToken = default);
    }
}
